﻿using CnSharp.Database.Objects;
using CnSharp.SSMS.AddIn.Util;

namespace CnSharp.SSMS.AddIn.Framework.Cache
{
    public interface IObjectCache
    {
        bool Processing { get;}
        Database.Objects.Database Get(string server, string databaseName);
        Table GetTable(DbObjectContext context);
        View GetView(DbObjectContext context);
        ProgramScript GetStoredProcedure(DbObjectContext context);
        void Cache(string server, string dbName,string connectionString);
        void Update(string server, string dbName, Table table);
    }
}
